package cn.wx.scholar.core.entity;

import java.io.UnsupportedEncodingException;

import com.alibaba.fastjson.annotation.JSONField;

import cn.wx.common.persistence.base.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author  
 * @since 2018-07-15
 */
public class News extends BaseEntity {



	private String userData;

	@JSONField(serialize=false)
	private byte[] titleSrc;


	private String pubTime;


	private String url;


	private String mediaNameSrc;

	@JSONField(serialize=false)
	private byte[] textSrc;

	public String getUserData() {
		return userData;
	}

	public void setUserData(String userData) {
		this.userData = userData;
	}

	public String getTitleSrc_() {
		try {
			return new String(titleSrc,"utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	public byte[] getTitleSrc() {
		return titleSrc;
	}

	public void setTitleSrc(byte[] titleSrc) {
		this.titleSrc = titleSrc;
	}

	public String getPubTime() {
		return pubTime;
	}

	public void setPubTime(String pubTime) {
		this.pubTime = pubTime;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMediaNameSrc() {
		return mediaNameSrc;
	}

	public void setMediaNameSrc(String mediaNameSrc) {
		this.mediaNameSrc = mediaNameSrc;
	}

	public String getTextSrc_() {
		try {
			return new String(textSrc,"utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	public byte[] getTextSrc() {
		return textSrc;
	}

	public void setTextSrc(byte[] textSrc) {
		this.textSrc = textSrc;
	}


}
